package org.aurora.core.biz.controller.api;

import org.aurora.core.biz.service.IClientAppService;
import org.aurora.model.entity.ClientAppInfo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/client/app")
public class ClientAppController {
    @Resource
    private IClientAppService clientAppService;

    @PostMapping("/save")
    public HttpResponse<Long> save(@RequestBody ClientAppInfo clientAppInfo) {
        return HttpResponse.buildSuccess(this.clientAppService.saveClientApp(clientAppInfo));
    }
}
